package com.itheima.features.catc;

import java.io.FileInputStream;
import java.io.FileOutputStream;

public class TryCatchDemo02 {

    public static void main(String[] args) {


        try (
                FileInputStream fileInputStream = new FileInputStream("");
                FileOutputStream fileOutputStream = new FileOutputStream("");
        ) {
            byte[] bytes = new byte[1024];
            int len = -1;
            while ((len = fileInputStream.read(bytes)) != -1){
                fileOutputStream.write(bytes, 0, len);
            }
        } catch (Exception e){
            e.printStackTrace();
        }



    }
}
